]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Remove manually added :rtl pseudo classes
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 3 Mar 2011 21:38:24 +0000 (22:38 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 5 Mar 2011 18:40:56 +0000 (19:40 +0100)
To deal with different CSS in RTL locales, we used to manually add
an :rtl pseudo class to some actors. With automatically assigned
:ltr/:rtl selectors this is no longer necessary.

https://bugzilla.gnome.org/show_bug.cgi?id=643835

js/ui/dash.js
js/ui/panel.js
js/ui/workspaceThumbnail.js

index e0a48e59e35bd21233238fb7d9dfb8a8002cb174..6a39edc481e3789934681daaeb8eefa71283f531 100644 (file)
@@ -262,11 +262,6 @@ Dash.prototype = {
                                        clip_to_allocation: true });
         this._box._delegate = this;
 
-        // This will eventually be automatic, see
-        // https://bugzilla.gnome.org/show_bug.cgi?id=584662
-        if (St.Widget.get_default_direction () == St.TextDirection.RTL)
-            this._box.add_style_pseudo_class('rtl');
-
         this.actor = new St.Bin({ y_align: St.Align.START, child: this._box });
         this.actor.connect('notify::height', Lang.bind(this,
             function() {
index 95dc2bcac63c6c2d7c78296eef77216b4d9b63cf..7b86db7fa6ded0ddc77a35547590b40855202bd3 100644 (file)
@@ -813,13 +813,6 @@ Panel.prototype = {
         this._centerBox = new St.BoxLayout({ name: 'panelCenter' });
         this._rightBox = new St.BoxLayout({ name: 'panelRight' });
 
-        // This will eventually be automatic, see
-        // https://bugzilla.gnome.org/show_bug.cgi?id=584662
-        if (St.Widget.get_default_direction() == St.TextDirection.RTL) {
-            this._leftBox.add_style_pseudo_class('rtl');
-            this._rightBox.add_style_pseudo_class('rtl');
-        }
-
         this._leftCorner = new PanelCorner(St.Side.LEFT);
         this._rightCorner = new PanelCorner(St.Side.RIGHT);
 
index d3acd3a5ed7a3a95d0717e8e44fd9378dfe54027..9aeab981c2a709546ccbf8039d1ca2323971e892 100644 (file)
@@ -402,10 +402,6 @@ ThumbnailsBox.prototype = {
         // for the border and padding of the background actor.
         this._background = new St.Bin({ style_class: 'workspace-thumbnails-background' });
 
-        // This will eventually be automatic, see https://bugzilla.gnome.org/show_bug.cgi?id=584662
-        if (St.Widget.get_default_direction () == St.TextDirection.RTL)
-            this._background.add_style_pseudo_class('rtl');
-
         this.actor.add_actor(this._background);
 
         let indicator = new St.Bin({ style_class: 'workspace-thumbnail-indicator' });